html {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    margin: 0;
    padding: 0px 0px 0px 0px;
    height: 100%;
    background: #F8F8F8;
}

body,td,th,input,select,textarea,option,optgroup {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #000000;
}

input[type='text'] {
    padding: 2px;
}

select {
    padding: 1px;
}

textarea {
    padding: 2px;
}

a,a:visited {
    color: #003366;
    cursor: pointer;
    text-decoration: none;
}

form {
    margin: 0;
    padding: 0;
}

#header {
    height: 122px;
    padding: 0px 50px;
    min-width: 1000px;
}

div#nMenu {
    height: 42px;
    margin: auto;
    top: 5px;
    width: 1000px;
}

ul#nTopMenu {
    float: left;
    margin: 0 0 0 25px;
    padding: 0;
}

ul#nTopMenu li {
    display: block;
    float: left;
    height: 28px;
    margin-right: 10px;
    margin-top: 12px;
    text-align: center;
    width: 120px;
}

ul#nTopMenu li a {
    color: #FFFFFF;
    display: block;
    font-size: 15px;
    margin-top: 5px;
    text-align: center;
    text-decoration: none;
}

ul#nTopMenu li:hover {
    background: none repeat scroll 0 0 #404040;
    display: block;
    float: left;
    height: 28px;
    margin-right: 10px;
    margin-top: 12px;
    text-align: center;
}

ul#nTopMenu li.nSelectNow {
    background: none repeat scroll 0 0 #404040;
    display: block;
    float: left;
    height: 28px;
    margin-right: 10px;
    margin-top: 12px;
    text-align: center;
}

#header .div1 {
    padding: 10px 0px 0px 0px;
    float: left;
    font-size: 26px;
    font-weight: bold;
}

#header .div1 .div1-1 {
    font-size: 18px;
    font-weight: normal;
}

#header .div2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #000;
    text-align: right;
    padding: 14px 0px 0px 0px;
    float: right;
}

#HomeHeader {
    height: 56px;
    padding: 0px 30px;
    background: url('../image/header.png') repeat-x;
    min-width: 900px;
}

#HomeHeader .div1 {
    color: #fff;
    padding: 20px 0px 0px 0px;
    float: left;
    font-size: 22px;
}

#HomeHeader .div2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #FFF;
    text-align: right;
    padding: 14px 0px 0px 0px;
    float: right;
}

#menu {
    padding: 0;
    min-width: 900px;
}

#content {
    padding: 10px 30px 0px 30px;
    min-width: 900px;
    background: #F8F8F8;
}

#container {
    height: 100%;
}

body>#container {
    height: auto;
    min-height: 100%;
}

#footer {
    background: #FFFFFF url('../image/footer.png') repeat-x;
    height: 50px;
    position: relative;
    clear: both;
}

#footer a {
    color: #333;
    text-decoration: underline;
}

.success {
    padding: 15px 0px;
    margin-bottom: 15px;
    background: #E4F1C9;
    border: 1px solid #A5BD71;
    font-size: 12px;
    text-align: center;
}

.warning {
    padding: 15px 0px;
    margin-bottom: 15px;
    background: #FFDFE0;
    border: 1px solid #FF9999;
    font-size: 12px;
    text-align: center;
}

.attention {
    padding: 15px 0px;
    margin-bottom: 15px;
    background: #FEFBCC;
    border: 1px solid #E6DB55;
    font-size: 12px;
    text-align: center;
}

.box {
    margin-bottom: 15px;
    padding-left: 30px;
    padding-right: 30px;
    padding-bottom: 0px;
}

.box>.heading {
    height: 40px;
    background: url('../image/box_center.png') repeat-x;
    margin-bottom: 0px;
}

.box>.left {
    float: left;
    width: 7px;
    height: 40px;
    background: url('../image/box_left.png') no-repeat;
}

.box>.right {
    float: right;
    width: 7px;
    height: 40px;
    background: url('../image/box_right.png') no-repeat;
}

.box>.heading h1 {
    background-position: 2px 9px;
    background-repeat: no-repeat;
    margin: 0px;
    padding: 11px 0px 11px 30px;
    color: #003A88;
    font-size: 16px;
    float: left;
}

.heading2 {
    margin: 0px;
    padding: 0px 0px 10px 0px;
    color: #000;
    font-size: 20px;
    text-align: center;
    font-weight: bold;
}

.heading3 {
    background-position: 2px 9px;
    background-repeat: no-repeat;
    margin: 0px;
    padding: 11px 0px 11px 30px;
    color: #003A88;
    font-size: 14px;
    font-weight: bold;
}

.box>.heading .buttons {
    float: right;
    padding-top: 8px;
}

.box>.content {
    padding: 10px;
    border-left: 1px solid #CCCCCC;
    border-right: 1px solid #CCCCCC;
    border-bottom: 1px solid #CCCCCC;
    min-height: 300px;
    background: #fff;
}

.box>.content>.ui-corner {
    -moz-border-radius: 15px;
    margin: 15px;
    padding: 20px;
    border: 1px solid #CCCCCC;
    vertical-align: top;
}

legend {
    font-weight: bold;
}

.button {
    padding-left: 8px;
    display: inline-block;
    margin-right: 5px;
    background: url('../image/button_left.png') top left no-repeat;
}

.button span {
    color: #FFF;
    display: block;
    padding: 5px 10px 5px 2px;
    background: url('../image/button_right.png') top right no-repeat;
}

.list {
    border-collapse: collapse;
    width: 100%;
    border-top: 1px solid #DDDDDD;
    border-left: 1px solid #DDDDDD;
    margin-bottom: 20px;
}

.list2 {
    border-collapse: collapse;
    border: 1px solid #DDDDDD;
    margin-bottom: 20px;
}

.list2 thead td {
    background-color: #EFEFEF;
    padding: 5px;
    border-bottom: 1px solid #DDDDDD;
    font-weight: bold;
}

.list2 tfoot td {
    background-color: #F9F9F9;
    padding: 5px;
    border-top: 1px solid #DDDDDD;
    font-weight: bold;
}

.list td {
    border-right: 1px solid #DDDDDD;
    border-bottom: 1px solid #DDDDDD;
}

.list thead td {
    background-color: #EFEFEF;
    padding: 0px 5px;
}

.list thead td a,.list thead td {
    text-decoration: none;
    color: #222222;
    font-weight: bold;
}

.list tbody a {
    text-decoration: underline;
}

.list tbody td {
    vertical-align: middle;
    padding: 0px 5px;
}

/*
.list tr:hover {
        background-color: #FFE6FF;
}
*/
.list tbody tr:odd {
    background: #FFFFFF;
}

.list tbody tr:even {
    background: #E4EEF7;
}

.list .left {
    text-align: left;
    padding: 7px;
}

.list .right {
    text-align: right;
    padding: 7px;
}

.list .center {
    text-align: center;
    padding: 7px;
}

.list .pRight {
    text-align: right;
    padding-right: 20px;
}

.list .pLeft {
    text-align: left;
    padding-left: 20px;
}

.list2 .left {
    text-align: left;
    padding: 7px;
}

.list2 .right {
    text-align: right;
    padding: 7px;
}

.list2 .center {
    text-align: center;
    padding: 7px;
}

.list2 .pRight {
    text-align: right;
    padding-right: 20px;
}

.list2 .pLeft {
    text-align: left;
    padding-left: 20px;
}

.tLeft {
    text-align: left;
}

.tRight {
    text-align: right;
}

.tCenter {
    text-align: center;
}

.list .asc {
    padding-right: 15px;
    background: url('../image/asc.png') right center no-repeat;
}

.list .desc {
    padding-right: 15px;
    background: url('../image/desc.png') right center no-repeat;
}

.list .filter td {
    padding: 5px;
    background: #E7EFEF;
}

/*List Show*/
.listshow {
    border-collapse: collapse;
    width: 70%;
    border-top: 1px solid #DDDDDD;
    border-left: 1px solid #DDDDDD;
    margin: auto auto 20px auto;
    padding: 0px;
}

.listshow td {
    border-right: 1px solid #DDDDDD;
    border-bottom: 1px solid #DDDDDD;
}

.listshow .list3 td {
    border-right: 0px solid #DDDDDD;
    border-bottom: 0px solid #DDDDDD;
}

.listshow thead td {
    background-color: #EFEFEF;
    padding: 0px 5px;
}

.listshow thead td a,.list thead td {
    text-decoration: none;
    color: #222222;
    font-weight: bold;
}

.listshow tbody a {
    text-decoration: underline;
}

.listshow tbody td {
    vertical-align: middle;
    padding: 0px 5px;
}

.listshow tbody tr:odd {
    background: #FFFFFF;
}

.listshow tbody tr:even {
    background: #E4EEF7;
}

.listshow .left {
    text-align: left;
    padding: 7px;
}

.listshow .right {
    text-align: right;
    padding: 7px;
}

.listshow .center {
    text-align: center;
    padding: 7px;
}

.listshow .asc {
    padding-right: 15px;
    background: url('../image/asc.png') right center no-repeat;
}

.listshow .desc {
    padding-right: 15px;
    background: url('../image/desc.png') right center no-repeat;
}

.listshow .filter td {
    padding: 5px;
    background: #E7EFEF;
}

.pagination {
    margin-top: 30px;
    border-top: 1px solid #EEEEEE;
    background: #F8F8F8;
    display: inline-block;
    width: 100%;
}

.pagination .links,.pagination .results {
    padding: 9px;
}

.pagination .links {
    float: left;
}

.pagination .links a {
    border: 1px solid #CCCCCC;
    padding: 4px 7px;
    text-decoration: none;
    color: #000000;
}

.pagination .links b {
    border: 1px solid #CCCCCC;
    padding: 4px 7px;
    text-decoration: none;
    color: #000000;
    background: #FFFFFF;
}

.pagination .results {
    float: right;
}

.form {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0px;
}

table.form tr td:first-child {
    width: 100px;
}

.form>*>*>td {
    padding: 10px;
    color: #000000;
    border-bottom: 1px dotted #CCCCCC;
}

.help {
    color: #999;
    font-size: 10px;
    font-weight: normal;
    font-family: Verdana, Geneva, sans-serif;
    display: block;
}

.required {
    color: #FF0000;
    font-weight: bold;
}

.error {
    color: #FF0000;
    padding-top: 3px;
    display: block;
    font-size: 12px;
    font-weight: normal;
}

.scrollbox {
    border: 1px solid #CCCCCC;
    width: 350px;
    height: 100px;
    background: #FFFFFF;
    overflow-y: scroll;
}

.htabs {
    padding: 0px 0px 0px 10px;
    height: 30px;
    border-bottom: 1px solid #DDDDDD;
    margin-bottom: 15px;
}

.htabs a {
    border-top: 1px solid #DDDDDD;
    border-left: 1px solid #DDDDDD;
    border-right: 1px solid #DDDDDD;
    background: #FFFFFF url('../image/tab.png') repeat-x;
    padding: 6px 15px 7px 15px;
    float: left;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: #000000;
    margin-right: 2px;
}

.htabs a.selected {
    padding-bottom: 8px;
    background: #FFFFFF;
}

.vtabs {
    width: 180px;
    padding: 10px 0px;
    min-height: 300px;
    float: left;
    display: block;
    border-right: 1px solid #DDDDDD;
}

.vtabs a {
    display: block;
    float: left;
    width: 150px;
    margin-bottom: 5px;
    clear: both;
    border-top: 1px solid #DDDDDD;
    border-left: 1px solid #DDDDDD;
    border-bottom: 1px solid #DDDDDD;
    background: #F7F7F7;
    padding: 6px 14px 7px 15px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: bold;
    text-align: right;
    text-decoration: none;
    color: #000000;
}

.vtabs a.selected {
    padding-right: 15px;
    background: #FFFFFF;
}

.vtabs_page {
    margin-left: 195px;
}

.scrollbox div {
    padding: 3px;
}

.scrollbox div input {
    margin: 0px;
    padding: 0px;
    margin-right: 3px;
}

.scrollbox div.even {
    background: #FFFFFF;
}

.scrollbox div.odd {
    background: #E4EEF7;
}

ul[id ^="thaicss-nav"]:after {
    content: " ";
    display: block;
    clear: both;
}

ul[id $="horizontal"]>li {
    float: left;
    font-size: 14px;
    width: 120px;
    position: relative;
    background: #f2f2f2;
    border-left: solid 1px #ccc;
    list-style-type: none;
}

ul[id $="horizontal"]>li:first-child {
    border-left: none;
}

ul[id|="thaicss-nav"]>li>a,ul[id|="thaicss-nav"]>li:hover>ul>li>a {
    display: block;
    line-height: 30px;
}

ul[id|="thaicss-nav"]>li>a {
    text-align: center;
    color: #333;
}

ul[id|="thaicss-nav"]>li:hover>ul>li>a {
    color: #FFF;
}

ul[id|="thaicss-nav"]>li:hover>a,ul[id|="thaicss-nav"]>li:hover>ul>li:hover>ul>li>a
{
    color: #CCC;
}

ul[id|="thaicss-nav"]>li:hover,ul[id|="thaicss-nav"]>li>ul,ul[id|="thaicss-nav"]>li:hover>ul>li>ul
{
    background: #666;
}

ul[id|="thaicss-nav"]>li:hover>ul>li:hover,ul[id|="thaicss-nav"]>li:hover>ul>li:hover>ul>li:hover
{
    background: #444;
}

ul[id $="horizontal"]>li>ul,ul[id $="horizontal"]>li:hover>ul>li>ul {
    visibility: hidden;
    position: absolute;
    width: 170px;
    list-style-type: none;
    text-decoration: none;
    padding: 0;
    margin: 0;
}

ul[id|="thaicss-nav"]>li:hover>ul,ul[id|="thaicss-nav"]>li:hover>ul>li:hover>ul
{
    visibility: visible;
}

ul[id|="thaicss-nav"]>li:hover>ul>li,ul[id|="thaicss-nav"]>li:hover>ul>li:hover>ul>li
{
    line-height: 25px;
    padding-left: 3px;
    border-bottom: solid 1px #555;
    border-top: solid 1px #999;
}

ul[id $="horizontal"]>li:hover>ul>li:hover>ul {
    left: 170px;
    margin-top: -25px;
}

/* Start แบ่งหน้า ajax */
.browse_page {
    clear: both;
    margin-left: 12px;
    height: 35px;
    margin-top: 5px;
    display: block;
}

.browse_page a,.browse_page a:hover {
    display: block;
    height: 18px;
    width: 18px;
    font-size: 10px;
    float: left;
    margin-right: 2px;
    border: 1px solid #CCCCCC;
    background-color: #F4F4F4;
    color: #333333;
    text-align: center;
    line-height: 18px;
    font-weight: bold;
    text-decoration: none;
}

.browse_page a:hover {
    border: 1px solid #0A85CB;
    background-color: #0A85CB;
    color: #FFFFFF;
}

.browse_page a.selectPage {
    display: block;
    height: 18px;
    width: 18px;
    font-size: 10px;
    float: left;
    margin-right: 2px;
    border: 1px solid #0A85CB;
    background-color: #0A85CB;
    color: #FFFFFF;
    text-align: center;
    line-height: 18px;
    font-weight: bold;
}

.browse_page a.SpaceC {
    display: block;
    height: 18px;
    width: 18px;
    font-size: 10px;
    float: left;
    margin-right: 2px;
    border: 0px dotted #0A85CB;
    font-size: 11px;
    background-color: #FFFFFF;
    color: #333333;
    text-align: center;
    line-height: 18px;
    font-weight: bold;
}

.browse_page a.naviPN {
    width: 50px;
    font-size: 12px;
    display: block;
    height: 18px;
    float: left;
    border: 1px solid #0A85CB;
    background-color: #0A85CB;
    color: #FFFFFF;
    text-align: center;
    line-height: 18px;
    font-weight: bold;
}
/* End แบ่งหน้า ajax */
tr.alt td {
    background-color: #F7F7FF;
}

tr.over td {
    background-color: #CCC;
}

.require{
    padding:2px 10px 2px 5px;
    margin-left: 10px;
    background: #FFDFE0;
    border: 1px solid #FF9999;
    font-size: 12px;
    text-align: center;
}

.addprint{
    color: #cd0a0a;
}